Hello @MAZOOTH ,
Thank you for taking time to post this issue in Microsoft Q&A forum.
It’s a known issue and can be easily reproduced in some specific version of Visual Studio 2022, for example Visual Studio Community 2022 Preview(17.11.0 Preview 4.0).
Here are some workarounds currently:
- When you are going to create an ASP .NET (.NET Framework) project, try to uncheck the
Place solution and project in the same directory
option.
- When you launch VS and prepare to create a new project(ASP .NET project), don’t directly create it in
Start
/create a new project
page, instead, clickingContinue without code
, File, New, Project to create it.
Here’s the feedback ticket: HRESULT: 0X80040402 when creating a new Web Forms Project of this issue, please kindly check it and follow that ticket for any latest information about the fix.
Thanks for your understanding, if you have any further concerns, please feel free to let us know :)
Have a nice day.
Sincerely,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.